Objects Reference

bsp_object::message

Prototype

virtual int message(vector& p,float rad,int msg,int param,void *data)

Parameters

Parameter Type Description
p vector& position
rad float radius
msg int type
param int parameter
data void * general pointer parameter

Return Value

Returns 0 for passing the message on, <>0 for stopping message.

Remarks

This virtual function processes messages for the object. It must be implemented if the object needs to receive any messages. Returning 0 will let the message pass on to next object that is in its radius, returning <>0 will stop the message and return the value to the caller immediately.